import 'package:json_annotation/json_annotation.dart';

part 'lucky.g.dart';

class LuckyDrawModel {

  int value;

  bool checked;

  LuckyDrawModel({ required this.value, this.checked = false });
}

@JsonSerializable()
class LuckyRecordModel {

  String winTime;

  int amount;

  LuckyRecordModel({ required this.winTime, required this.amount  });

  factory LuckyRecordModel.fromJson(Map<String, dynamic> json) =>
      _$LuckyRecordModelFromJson(json);

  Map<String, dynamic> toJson() => _$LuckyRecordModelToJson(this);

  @override
  String toString() {
    return toJson().toString();
  }
}